Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define size of table in px rather than em #845

Merged
merged 2 commits into from
Jul 9, 2018
Merged

Conversation

hannalaakso
Copy link
Member

@hannalaakso hannalaakso commented Jun 28, 2018

This mirrors the changes made in #491. The change to tables was omitted from that PR as it wasn't clear whether there was an accessibility consideration for using em for tables in Elements but @selfthinker has said that this doesn't appear to be the case.

As discussed with @dashouse, the change in this PR does very slightly increase the padding of cells on mobile viewport as the use of em meant the font size set in the table was used to calculate padding. top and bottom of cells increase by 1.5px which slightly increases the height of the table on mobile. (padding-right also increases very slightly but it won't change the width of the table).

@36degrees
Copy link
Contributor

I don't think this is a breaking (major) change. The height of a table is not 'known' – it's entirely dependant on the content within it. I can't really see how someone would be using tables in such a way that changing that height of the table (especially by such a small amount) makes any meaningful difference.

@hannalaakso hannalaakso force-pushed the remove-em-from-tables branch from 63eaea7 to 7588601 Compare July 6, 2018 08:47
@hannalaakso
Copy link
Member Author

Agreed. I've changed the Changelog entry and filed this under Fixes.

@kr8n3r kr8n3r added this to the v1.1.0 milestone Jul 6, 2018
@hannalaakso hannalaakso merged commit e8a743c into master Jul 9, 2018
@hannalaakso hannalaakso deleted the remove-em-from-tables branch July 9, 2018 15:40
@NickColley NickColley mentioned this pull request Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants